import Vue from 'vue'
import VueRouter from 'vue-router'
// import HomeView from '../views/HomeView.vue'
import A1View from "../views/A1View.vue";
import A2View from "../views/A2View.vue";
import A4View from "../views/A4View.vue";
import A3View from "../views/A3View.vue";
import index from "../views/index.vue";
import publishView from "@/views/publishView.vue";
import PhoneLogin from "@/views/PhoneLogin.vue";
import verification from "@/views/verification.vue";
import PasswordLogin from "@/views/PasswordLogin.vue";
import VerifyLogin from "@/views/VerifyLogin.vue";
import ResetPassword from "@/views/ResetPassword.vue";
import OperatorLogin from "@/views/OperatorLogin.vue";
import Confirm_order from "@/views/placeOrder/Confirm_order.vue";
import Place_order from "@/views/placeOrder/Place_order.vue";
import Receiving_address from "@/views/placeOrder/Receiving_address.vue";
import LiveView1 from "@/views/LiveView1.vue";
import Help from "@/views/Help.vue";
import RetrieveAccount from "@/views/RetrieveAccount.vue";
import RetrieveHelp from "@/views/RetrieveHelp.vue";
import LockAccount from "@/views/LockAccount.vue";
import UnlockAccount from "@/views/UnlockAccount.vue";

Vue.use(VueRouter)

const routes = [
  // {
  //   path: '/',
  //   name: 'home',
  //   component: HomeView
  // },
  {
    path: '/',
    name: '/index',
    component: index
  },
  {
    path: '/publish',
    name: '/publish',
    component: publishView
  },
  {
    path: '/a1',
    name: 'a1',
    component: A1View
  },
  {
    path: '/py',
    component: A2View
  },
  {
    path: '/xx',
    component: A3View
  },
  {
    path: '/wd',
    component: A4View
  },
    {
    path: '/OperatorLogin',
    component: OperatorLogin
  },
  {
    path: '/Confirm_order',
    name: 'Confirm_order',
    component: Confirm_order
  },
  {
    path: '/Place_order',
    name: 'Place_order',
    component: Place_order
  },
  {
    path: '/Receiving_address',
    name: 'Receiving_address',
    component: Receiving_address
  },

  {
    path: '/Confirm_order',
    name: 'Confirm_order',
    component: Confirm_order
  },
  {
    path: '/Receiving_address',
    name: 'Receiving_address',
    component: Receiving_address
  },
  {
    path: '/Place_order',
    name: 'Place_order',
    component: Place_order
  },
    {
    path: '/PhoneLogin',
    component: PhoneLogin
  },
  {
    name: '/verification',
    path: '/verification',
    component: verification
  },
  {
    name: 'password',
    path: '/passwordLogin',
    component: PasswordLogin
  },
  {
    name: 'VerifyLogin',
    path: '/VerifyLogin',
    component: VerifyLogin
  },
  {
    name: 'ResetPassword',
    path: '/ResetPassword',
    component: ResetPassword
  },
  {
    name: 'MyOrderView',
    path: '/myOrder',
  },
  {
    name: 'AllOrdersView',
    path: '/allOrders',
  },
    {
    name: 'LiveView1',
    path: '/liveView1',
      component: LiveView1
  },


  {
    path: '/Help',
    component: Help
  },
  {
    path: '/RetrieveHelp',
    component: RetrieveHelp
  },
  {
    path: '/RetrieveAccount',
    component: RetrieveAccount
  },
  {
    path: '/lock-account',
    component: LockAccount
  },
  {
    path: '/unlock-account',
    component: UnlockAccount
  },
]

const router = new VueRouter({
  mode:'hash',
  routes: routes
})

export default router
